<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8">
		<meta http-equiv="pragma" content="no-cache" />
		<title>ExtJS测试</title>
		<link rel="stylesheet" type="text/css" href="../js/extjs3.2/resources/css/ext-all.css"/>
		<script type="text/javascript" src="../js/extjs3.2/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="../js/extjs3.2/ext-all.js"></script>
		<script type="text/javascript">  
        	Ext.onReady(function() {  
             var win = new Ext.Window({
					title:"Ext窗口",
					resizable:false,
					width:350,
					height:300,
					html:"Hi,<br>这是我的第一个Ext窗口示例",
					buttonAlign:"center",
					buttons:[{text:"setTitle",handler:changeTitle},{text:"close",handler:closeWin}]
                 });
             function changeTitle(){
				win.setTitle("标题被改变了");
                 }
             function closeWin(){
				win.close();
                 }
             win.show();
        });  
        </script>  	
	</head>
	
</html>